class RegistrationRequestMailer < ActionMailer::Base
  #default :from => "pukara2012@gmail.com"
  default :from => "pukara.cultural.2012@gmail.com"
  
  def registered_email(solicitud)
   @request_and_complaint_registration_request=solicitud
   mail(:to => solicitud.mail, :subject => "Solicitud Registrada")
  end

   def approved_email(solicitud)

     @request_and_complaint_registration_request=solicitud
   mail(:to => solicitud.mail, :subject => "Solicitud Aprobada")
  end

    def rejected_email(solicitud)

       @request_and_complaint_registration_request=solicitud
   mail(:to => solicitud.mail, :subject => "Solicitud Rechazada")
  end

     def assigned_email(responsable)

       @security_people=responsable
   mail(:to => responsable.mail, :subject => "Solicitud Asignada")
  end
end
